package com.alibaba.thread;

public class MyRunnable implements Runnable{

    private String threadName;


    public MyRunnable(String threadName){this.threadName=threadName; }
    @Override
    public void run(){
        for (int i = 0; i < 50; i++) {
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(threadName+":"+i);
        }
    }
}
